package com.cxw.demo111.controller;

import com.cxw.demo111.model.Emp;
import com.cxw.demo111.service.EmpService;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Controller
public class EmpController {
    @Autowired
    private EmpService empService;


    @RequestMapping("/findPage")
    @ResponseBody
    public PageInfo<Emp> findPage(Integer page, Integer rows) {//jrebel
        System.out.println("=========测试热部署是否成功=============");
        return empService.findPage(page, rows);
    }
}
